<template>
  <div class="TimeBar-container">
    <div class="photoFrame" v-for="(item, i) in data.items" :key="i">
      <div class="time">{{ item.time }}</div>
      <div class="img img-right">
        <img
          class="img-right"
          v-for="(item1, j) in item.url"
          :key="j"
          :src="item1"
          alt=""
        />
      </div>
    </div>
  </div>
</template>

<script setup>
const data = {
  items: [
    {
      time: "4月13日",
      url: [
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
      ],
    },
    {
      time: "4月13日",
      url: [
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
      ],
    },
    {
      time: "4月13日",
      url: [
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
      ],
    },
    {
      time: "4月13日",
      url: [
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
      ],
    },
    {
      time: "4月13日",
      url: [
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        "https://www.bing.com/th?id=OIP.IZaNHhH559XeBirkmi8cdAHaLH&w=120&h=150&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
      ],
    },
  ],
};
const props = defineProps({
  time: {
    type: String,
  },
  url: {
    type: String,
  },
});
</script>

<style scoped>
.TimeBar-container {
  width: 750px;
  box-sizing: border-box;
}
.img {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
img {
  width: 186px;
  height: 186px;
  object-fit: cover;
  margin-bottom: 4px;
  margin-right: 2px;
}
.img-right:nth-child(4n) {
  margin-right: 0;
}
.time {
  font-size: 32px;
  font-weight: bold;
  margin: 26px 30px 16px;
}
</style>